<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Mourner
 *
 * @ORM\Table(name="mourner")
 * @ORM\Entity
 */
class Mourner
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var string
     *
     * @ORM\Column(name="comment", type="string", length=45, nullable=false)
     */
    protected $comment;

    /**
     * @var integer
     *
     * @ORM\Column(name="gift", type="integer", nullable=false)
     */
    protected $gift;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\Grave
     *
     * @ORM\ManyToOne(targetEntity="Entity\Grave")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="grave_id", referencedColumnName="id")
     * })
     */
    protected $grave;

    /**
     * @var \Entity\User
     *
     * @ORM\ManyToOne(targetEntity="Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     * })
     */
    protected $user;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set comment
     *
     * @param string $comment
     * @return Mourner
     */
    public function setComment($comment)
    {
        $this->comment = $comment;
    
        return $this;
    }

    /**
     * Get comment
     *
     * @return string 
     */
    public function getComment()
    {
        return $this->comment;
    }

    /**
     * Set gift
     *
     * @param integer $gift
     * @return Mourner
     */
    public function setGift($gift)
    {
        $this->gift = $gift;
    
        return $this;
    }

    /**
     * Get gift
     *
     * @return integer 
     */
    public function getGift()
    {
        return $this->gift;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return Mourner
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set grave
     *
     * @param \Entity\Grave $grave
     * @return Mourner
     */
    public function setGrave(\Entity\Grave $grave = null)
    {
        $this->grave = $grave;
    
        return $this;
    }

    /**
     * Get grave
     *
     * @return \Entity\Grave 
     */
    public function getGrave()
    {
        return $this->grave;
    }

    /**
     * Set user
     *
     * @param \Entity\User $user
     * @return Mourner
     */
    public function setUser(\Entity\User $user = null)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}
